import cn.config.MvcConfig;
import cn.config.MybatisConfig;
import cn.controller.SysOfficeController;
import cn.entity.Examine;
import cn.entity.ExamineCondition;
import cn.entity.SysOffice;
import cn.service.ExamineService;
import cn.service.QulificationService;
import cn.service.SysOfficeService;
import com.github.pagehelper.PageInfo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.cache.RedisCacheManager;
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import redis.clients.jedis.Jedis;

import java.util.List;
import java.util.concurrent.TimeUnit;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {MybatisConfig.class, MvcConfig.class})
@WebAppConfiguration
public class test4 {

    @Autowired
    RedisCacheManager redisCacheManager;
    @Autowired
    RedisTemplate redisTemplate;

    @Autowired
    JedisConnectionFactory jedisConnectionFactory;

    @Autowired
    SysOfficeService sysOfficeService;
    @Test
    public void test1(){
        SysOffice sysOffice1 = new SysOffice();
        sysOffice1.setId((long) 2);
        SysOffice sysOffice = sysOfficeService.selectByPrimaryKey(sysOffice1);
        System.out.println(sysOffice);
    }
}
